package mju.cxf;

import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableConfigurationProperties(OSSEntry.class)
public class OssAutoConfiguration {
    @Bean
    public OssUtil getOss(OSSEntry ossEntry){
        OssUtil ossUtil = new OssUtil();
        ossUtil.setOssEntry(ossEntry);
        return ossUtil;
    }
}
